<script>
	//Checking whether the form was submitted successfuly
  var formsubmitted = '<%#formsubmitted%>'
 if(formsubmitted == "1")
	{
		alert('Submitted successfully.');
		window.opener.location.href = window.opener.location.href
		window.opener.document.forms[0].submit();
	}
</script>
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" >
	<TR valign=top>
		<TD class="N-TopLineBG"><IMG SRC="<%#VirtualDirectory%>/images/spacer.gif" WIDTH="5" HEIGHT="5"></TD>
	</TR>
	<TR>
		<TD valign=top>
			<div id=PropertyDiv_ctl0 style='OVERFLOW: auto; WIDTH: 100%; POSITION: static; height=370'>
				<TABLE cellspacing="1" cellpadding="5" border="0" width="100%">
					<TR Class="N-MainBGColor">
						<TD>
							<font class="heading2">Set Activity List Filter <BR>(Filter criteria for activity list.)</font>
						</TD>
						<TD>
							<SELECT name="selsavedsearch" id="selsavedsearch" class="list">
									<OPTION value="0">Select Instance Filter</OPTION>
										<%#savedactivityset%>
							</SELECT>
						</TD>
					</TR>
					<TR CLASS="N-ListBGCOLORCOL2">
						<TD colspan=2>
							<TABLE border="0" cellspacing="1" cellpadding="6" width="100%">
								<!-- Gets loaded from ActivitySetListDetailsErr.htm -->
								<%#ErrActivitySetColumnsList%>
								<TR Class="N-MainBGColor">
									<TD width="30%" Class="N-MainBGColor"><font class="heading2">Column Name</font>
									<TD width="10%"><div align="center" class="heading2">Set?</div>
									</TD>
								</TR>
								<!-- Gets loaded from ActivitySetColumnsListDetails.htm
									If values are null then
									Gets loaded from ActivitySetColumnsListDetailsInfo.htm -->

								<%#ActivitySetColumnsList%>
							</TABLE>
						</TD>
					</TR>
					<TR Class="N-MainBGColor">
						<TD Colspan="2" align="center">
							<INPUT TYPE="hidden" value="<%#Identifier%>" name="identifier">
							<INPUT TYPE="submit" value=" Set Display Columns & Filter" class="button2" name="btnSet"> &nbsp;&nbsp;
							<INPUT TYPE="button" value=" Close " class="button2" name="btnClose" onclick="javascript:closewindow()">
						</TD>
					</TR>
				</TABLE>
			</div>
		</TD>
	</TR>
	<TR>
		<TD Class="N-LogoBG"><IMG SRC="<%#VirtualDirectory%>/images/spacer.gif" WIDTH="5" HEIGHT="5"></TD>
	</TR>
</TABLE>
<script>
	function closewindow()
	{
		window.close();
	}
</script>
